﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DLINQ(LINQ to SQL)之结合GridView控件和ObjectDataSource控件演示大数据量分页，同时介绍延迟执行和日志记录.aspx.cs" Inherits="_35newpart_Linq_DLINQ_LINQ_to_SQL_之结合GridView控件和ObjectDataSource控件演示大数据量分页_同时介绍延迟执行和日志记录" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>DLINQ(LINQ to SQL)之结合GridView控件和ObjectDataSource控件演示大数据量分页，同时介绍延迟执行和日志记录
 Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    </div>
    <asp:GridView ID="GridView1" runat="server" DataSourceID="ObjectDataSource1" 
         AutoGenerateColumns="False" AllowPaging="True" PageSize="5">
        <Columns>
            <asp:boundfield DataField="bookid" HeaderText="bookid" SortExpression="bookid">
            </asp:boundfield>
            <asp:boundfield DataField="mch" HeaderText="mch" SortExpression="mch">
            </asp:boundfield>
            <asp:boundfield DataField="pp" HeaderText="pp" SortExpression="pp">
            </asp:boundfield>
            <asp:boundfield DataField="qch" HeaderText="qch" SortExpression="qch">
            </asp:boundfield>
            <asp:boundfield DataField="jj" HeaderText="jj" SortExpression="jj">
            </asp:boundfield>
            <asp:boundfield DataField="rq" HeaderText="rq" SortExpression="rq">
            </asp:boundfield>
            <asp:boundfield DataField="jg" HeaderText="jg" SortExpression="jg">
            </asp:boundfield>
            <asp:boundfield DataField="zl" HeaderText="zl" SortExpression="zl">
            </asp:boundfield>
            <asp:boundfield DataField="xx" HeaderText="xx" SortExpression="xx">
            </asp:boundfield>
            <asp:boundfield DataField="isbn1" HeaderText="isbn1" SortExpression="isbn1">
            </asp:boundfield>
            <asp:boundfield DataField="tp" HeaderText="tp" SortExpression="tp">
            </asp:boundfield>
            <asp:boundfield DataField="nr" HeaderText="nr" SortExpression="nr">
            </asp:boundfield>
            <asp:boundfield DataField="ml" HeaderText="ml" SortExpression="ml">
            </asp:boundfield>
            <asp:boundfield DataField="bookname" HeaderText="bookname" 
                SortExpression="bookname"></asp:boundfield>
            <asp:boundfield DataField="pingpai" HeaderText="pingpai" 
                SortExpression="pingpai"></asp:boundfield>
            <asp:boundfield DataField="bookchuban" HeaderText="bookchuban" 
                SortExpression="bookchuban"></asp:boundfield>
            <asp:boundfield DataField="bookdate" HeaderText="bookdate" 
                SortExpression="bookdate"></asp:boundfield>
            <asp:boundfield DataField="kaiben" HeaderText="kaiben" SortExpression="kaiben">
            </asp:boundfield>
            <asp:boundfield DataField="yeshu" HeaderText="yeshu" SortExpression="yeshu">
            </asp:boundfield>
            <asp:boundfield DataField="banci" HeaderText="banci" SortExpression="banci">
            </asp:boundfield>
            <asp:boundfield DataField="zhuang" HeaderText="zhuang" SortExpression="zhuang">
            </asp:boundfield>
            <asp:boundfield DataField="isbn" HeaderText="isbn" SortExpression="isbn">
            </asp:boundfield>
            <asp:boundfield DataField="bookcontent" HeaderText="bookcontent" 
                SortExpression="bookcontent"></asp:boundfield>
            <asp:boundfield DataField="bookmulu" HeaderText="bookmulu" 
                SortExpression="bookmulu"></asp:boundfield>
            <asp:boundfield DataField="pingji" HeaderText="pingji" SortExpression="pingji">
            </asp:boundfield>
            <asp:boundfield DataField="shichangjia" HeaderText="shichangjia" 
                SortExpression="shichangjia"></asp:boundfield>
            <asp:boundfield DataField="huiyuanjia" HeaderText="huiyuanjia" 
                SortExpression="huiyuanjia"></asp:boundfield>
            <asp:boundfield DataField="vipjia" HeaderText="vipjia" SortExpression="vipjia">
            </asp:boundfield>
            <asp:boundfield DataField="bestbook" HeaderText="bestbook" 
                SortExpression="bestbook"></asp:boundfield>
            <asp:boundfield DataField="tejiabook" HeaderText="tejiabook" 
                SortExpression="tejiabook"></asp:boundfield>
            <asp:boundfield DataField="newsbook" HeaderText="newsbook" 
                SortExpression="newsbook"></asp:boundfield>
            <asp:boundfield DataField="kucun" HeaderText="kucun" SortExpression="kucun">
            </asp:boundfield>
            <asp:boundfield DataField="chengjiaocount" HeaderText="chengjiaocount" 
                SortExpression="chengjiaocount"></asp:boundfield>
            <asp:boundfield DataField="liulancount" HeaderText="liulancount" 
                SortExpression="liulancount"></asp:boundfield>
            <asp:boundfield DataField="dazhe" HeaderText="dazhe" SortExpression="dazhe">
            </asp:boundfield>
            <asp:boundfield DataField="nclassid" HeaderText="nclassid" 
                SortExpression="nclassid"></asp:boundfield>
            <asp:boundfield DataField="anclassid" HeaderText="anclassid" 
                SortExpression="anclassid"></asp:boundfield>
            <asp:boundfield DataField="bookpic" HeaderText="bookpic" 
                SortExpression="bookpic"></asp:boundfield>
            <asp:boundfield DataField="bookzz" HeaderText="bookzz" SortExpression="bookzz">
            </asp:boundfield>
            <asp:boundfield DataField="adddate" HeaderText="adddate" 
                SortExpression="adddate"></asp:boundfield>
            <asp:boundfield DataField="pingjizong" HeaderText="pingjizong" 
                SortExpression="pingjizong"></asp:boundfield>
            <asp:boundfield DataField="shjianame" HeaderText="shjianame" 
                SortExpression="shjianame"></asp:boundfield>
            <asp:boundfield DataField="shjiaid" HeaderText="shjiaid" 
                SortExpression="shjiaid"></asp:boundfield>
        </Columns>
    </asp:GridView>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        
        SelectMethod="GetPage" TypeName="ObjData" 
        OldValuesParameterFormatString="original_{0}" 
        SelectCountMethod="getPageCount" >
        <SelectParameters>
            <asp:parameter DefaultValue="0" Name="startRowIndex" Type="Int32" />
            <asp:parameter DefaultValue="3000" Name="maximumRows" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    </form>
</body>
</html>
